package com.youxin.cpcenter.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import com.youxin.busfoundation.bean.MonitorEmailBean;

@Configuration
@PropertySource("classpath:${spring.profiles.active}/email.properties")
@ConfigurationProperties(prefix="email")
public class EmailBeanConfig extends MonitorEmailBean{
	private static EmailBeanConfig config=null;	
	public static void initWithConfig(EmailBeanConfig emailConfig)
	{
		config=emailConfig;
	}
	
	public static EmailBeanConfig getConfig()
	{
		return config;
	}
}
